<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<div id="menu" align="right">
    <table bgcolor="#1f1f1f">
        <tr>
            <td><a href="${pageContext.request.contextPath}" class="button"> <spring:message code="menu.main"/> </a>
            </td>

            <c:if test="${sessionScope.user == null}">
                <td><a href="${pageContext.request.contextPath}/registration/takeReg" class="button"> <spring:message
                        code="menu.takeReg"/> </a></td>
            </c:if>

            <td><a href="${pageContext.request.contextPath}/affiliates" class="button"> <spring:message
                    code="menu.affiliates"/> </a></td>
            
            <c:if test="${sessionScope.user != null && sessionScope.user.userRoleOrdinal == 1}">
                <td><a href="${pageContext.request.contextPath}/carservicePage/carservices/list" 
                       class="button"> <spring:message code="menu.cabinet"/> </a></td>
            </c:if>
        </tr>
    </table>
</div>